package com.cms.persist;

import java.util.ArrayList;
import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;

import com.cms.model.Page;

public class DaoDummyHelper implements Dao
{
	public List<Page> getAllPages()
	{
		List <Page> result = new ArrayList<Page>();
		for (int i = 1; i < 6; i++)
		{
			Page p = new Page("title"+i, "menuTitle"+i, "<a> test sdnf fsdf  fsdf </a>");
			result.add(p);
		}
		return result;
	}

	public Page getPageById(long id) 
	{
		Page p = new Page("title", "menuTitle", "<a> test sdnf fsdf  fsdf </a>");
		p.setMenuPosition(1);
		return p;
	}
}
